from app import create_app
from app.models.models import db, Team

app = create_app()
with app.app_context():
    teams = Team.query.all()
    print("\n数据库中的战队列表：")
    print("-" * 30)
    for team in teams:
        print(f"战队名称: {team.name}")
        print(f"所属联赛: {team.league}")
        print(f"所属游戏: {team.game}")
        print(f"总比赛场次: {team.total_matches}")
        print(f"胜利场次: {team.wins}")
        print(f"胜率: {team.win_rate}%")
        print("-" * 30) 